package com.dingshi.security;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class NotifyInfoActivity extends BaseActivity {
	Button btn_info_back;
	TextView notify_n, notify_d, notify_t, notify_c;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.notifyinfoview);
		btn_info_back = (Button) findViewById(R.id.btn_info_back);
		btn_info_back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
//				finish();
				Intent intent = new Intent(NotifyInfoActivity.this,NotifykActivity.class);
				startActivity(intent);
			}
		});
		Intent intent = getIntent();
		String name = intent.getStringExtra("n");
		String time = intent.getStringExtra("d");
		String title = intent.getStringExtra("t");
		String context = intent.getStringExtra("c");
		notify_n = (TextView) findViewById(R.id.notify_n);

		notify_d = (TextView) findViewById(R.id.notify_d);

		notify_t = (TextView) findViewById(R.id.notify_t);

		notify_c = (TextView) findViewById(R.id.notify_c);

		notify_n.setText(name);
		notify_d.setText(time);
		notify_t.setText(title);
		notify_c.setText(context);
	}

}
